<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
<!-- 这里引入导航信息header.tpl -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title name="titleName">费用类型</title>
<style type="text/css">
.panel-input {
	width: 70%;
	float: left;
	margin: 0px 10px;
}

.float-left {
	float: left;
}
</style>
<script type="text/javascript">
	var treFeeTypePath = '<%=context%>' +'business/treFeeType/';
	//默认加载
	$(function(){
		//把访问路径传到js
		setPathPrefix(treFeeTypePath);
		window.treFeeType = new TRE_FEE_TYPE();
	});
</script>
<script type="text/javascript" src="<%=context%>resources/modules/business/product/treFeeTypeView.js?r=<%=Math.random()%>"></script>
</head>

<body class="sub-page">

	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="cpyy" />
	</jsp:include>

	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;产品运营</p>
		<p class="current">&gt;费用类型</p>
		<p class="current">&gt;<span name="titleName">新增</span>
		</p>
	</div>
	<div class="container">
		<div class="page-content">
			<!-- 费用类型新建模态窗 -->
			<form id="treFeeTypeAddForm" name="treFeeTypeAddForm" role="form" class="form-horizontal" method="post" action="<%=context%>business/treFeeType/saveTreFeeType.do">
				<!-- 如果将表单禁用，就给fieldset添加disabled属性 -->
				<fieldset>
					<div class="page-content">
						<div class="page-header">
							<h4 class="page-title" name="titleName">费用类型</h4>
							<input type="hidden" id="actionType" name="actionType" value="${actionType }"> <input type="hidden" id="prjCode" name="prjCode" value="${attach.prjCode }" /> <input type="hidden" id="oldPrjCode" name="oldPrjCode" value="${attach.prjCode }" />
						</div>
						
						<div class="page-body form-item-group">
							<div class="form-group">
								<label class="col-sm-2 control-label">费用编码<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="费用编码" class="form-control" id="feeCode" name="feeCode" value="${treFeeTypeVo.feeCode }"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">费用名称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="费用名称" class="form-control" id="feeName" name="feeName" value="${treFeeTypeVo.feeName }"/>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">费用层级<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<span class="form-input"> 
										<select class="form-control use-select2" placeholder="费用层级" name="feeLevel" id="feeLevel">
											<option value=""></option>
											<wasp:dictOptions dctRootType="FEE_LEVEL" initValue="${treFeeTypeVo.feeLevel }"></wasp:dictOptions>
										</select>
									</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">费用缩写</label>
								<div class="col-sm-10 form-inner">
									<input type="text" placeholder="费用名称" class="form-control" id="feeAbbr" name="feeAbbr" value="${treFeeTypeVo.feeAbbr }"/>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">费用标准名称<span class="text-danger">*</span></label>
								<div class="col-sm-10 form-inner">
									<span class="form-input"> 
										<select class="form-control use-select2" placeholder="费用标准名称" name="feeStandardName" id="feeStandardName">
											<option value=""></option>
											<wasp:dictOptions dctRootType="FEE_STANDARD_NAME" initValue="${treFeeTypeVo.feeStandardName }"></wasp:dictOptions>
										</select>
									</span>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">费用描述</label>
								<div class="col-sm-10 form-inner">
			 					<textarea rows="4" class="form-control" id="feeDesc" name="feeDesc">${treFeeTypeVo.feeDesc }</textarea>
							</div>
							</div>
							
						</div>
						
						<div class="page-footer">
							<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" id="commitBtn" name="commitBtn" data-loading-text="<i class='ico-loading'></i>" onclick="${'add' eq actionType?'treFeeType.addTreFeeType()':'treFeeType.updateTreFeeType()'}">提交</button>
							<button type="button" class="btn btn-link btn-w-xs" id="cancelBtn" name="cancelBtn" onclick="window.close();">取消</button>
						</div>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</body>
</html>